<h1>Return back borrowing</h1>

<% form_tag :action => 'returnback', :id => @borrowing do %>
<%= error_messages_for 'borrowing' %>

<p><label for="borrowing_returned_date">Returning date</label><br/>
<%= date_select 'borrowing', 'returned_date'  %></p>
<%= submit_tag "Return" %>
<!--[eoform:borrowing]-->

<% end %>

<%= link_to 'Show', :action => 'show', :id => @borrowing %> |
<%= link_to 'Back', :action => 'list' %>